Buffer status reporting method, terminal, and computer storage medium

ABSTRACT

An embodiment of the present invention discloses a buffer status reporting method, where the method including: triggering, by a terminal, reporting of a padding buffer status report (padding BSR); and determining, by the terminal, a reported BSR format according to a size of padding bits, a size of a first type of BSR format plus its media access control (MAC) subheader, and a quantity of logical channel groups currently having to-be-transmitted data being buffered, where a quantity of logical channel groups corresponding to the BSR format is greater than or equal to 1, and less than or equal to a maximum quantity of logical channel groups currently having to-be-transmitted data being buffered.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/826,136, filed on Mar. 20, 2020 which is a continuation of and claimspriority to International Patent Application PCT/CN2017/102662, filed onSep. 21, 2017, the contents of which are hereby incorporated byreference in their entirety.

BACKGROUND OF THE INVENTION Technical Field

The present invention relates to a wireless communications technology,and specifically, to a buffer status reporting method, a terminal, and acomputer storage medium.

Related Art

A terminal informs, in a form of reporting a buffer status report (BSR),a base station of a status of to-be-transmitted data buffered in theterminal, so that the base station can allocate a radio resource to theterminal more accurately. According to different events of triggeringBSRs, the BSRs may be classified into a regular BSR, a padding BSR, anda periodic BSR. According to formats of BSRs, the BSRs may be classifiedinto a short BSR, a long BSR, and a truncated BSR. The padding BSR iscarried in padding bits of a media access control protocol data unit(MAC PDU).

When a type of a BSR triggered by the terminal is the padding BSR, thereis a plurality of logical channels having data being transmitted, and alength of the padding bits is greater than or equal to that of one shortBSR and a media access control (MAC) subheader corresponding to theshort BSR, but is insufficient to be used to send a long BSR and a MACsubheader corresponding to the long BSR, the terminal reports the BSR byusing a type of the truncated BSR.

However, the truncated BSR is of a format of 1 byte, and the truncatedBSR of this format can be used to report only a buffer data statuscorresponding to one of a plurality of logical channel groups, butcannot be used to report buffer data statuses corresponding to theplurality of logical channel groups having data being transmitted, sothat the base station cannot learn the buffer data statusescorresponding to all the logical channel groups having data beingtransmitted, and therefore cannot accurately allocate a radio resourceto the terminal either.

SUMMARY OF THE INVENTION

To resolve an existing technical problem, embodiments of the presentinvention provide a buffer status reporting method, a terminal, and acomputer storage medium.

An embodiment of the present invention discloses a buffer statusreporting method, where the method includes triggering, by a terminal,reporting of a padding buffer status report; and determining, by theterminal, a reported BSR format according to a number of padding bits, asize of a first type of BSR format plus its MAC subheader, and aquantity of logical channel groups currently having datato-be-transmitted, where a quantity of logical channel groupscorresponding to the BSR format is greater than or equal to 1, and lessthan or equal to a maximum quantity of logical channel groups currentlyhaving data to-be-transmitted.

In an embodiment, the determining, by the terminal, a reported BSRformat according to a number of padding bits, a size of a first type ofBSR format plus its MAC subheader, and a quantity of logical channelgroups currently having data to-be-transmitted includes determining,when the number of the padding bits is greater than the size of thefirst type of BSR format plus its MAC subheader, and is less than a sumof a maximum length of a second type of BSR format and a size of a MACsubheader corresponding to the second type of BSR format, and thequantity of logical channel groups currently having datato-be-transmitted is at least two, a reported BSR format based on a sumof a size of the second type of BSR format corresponding to the logicalchannel groups currently having data to-be-transmitted and the size ofthe MAC subheader corresponding to the second type of BSR format, andthe number of the padding bits.

In an embodiment, the determining a reported BSR format based on a sumof a size of the second type of BSR format corresponding to the logicalchannel groups currently having data to-be-transmitted and the size ofthe MAC subheader corresponding to the second type of BSR format, andthe number of the padding bits includes determining, if the sum of thesize of the second type of BSR format corresponding to the logicalchannel groups currently having data to-be-transmitted and the size ofthe MAC subheader corresponding to the second type of BSR format is lessthan or equal to the number of the padding bits, to report the secondtype of BSR format, where a quantity of logical channel groupscorresponding to the second type of BSR format is equal to a quantity ofthe logical channel groups currently having data to-be-transmitted.

In an embodiment, the determining a reported BSR format based on a sumof a size of the second type of BSR format corresponding to the logicalchannel groups currently having data to-be-transmitted and the size ofthe MAC subheader corresponding to the second type of BSR format, andthe number of the padding bits includes determining, if the sum of thesize of the second type of BSR format corresponding to the logicalchannel groups currently having data to-be-transmitted and the size ofthe MAC subheader corresponding to the second type of BSR format isgreater than the number of the padding bits, to report a third type ofBSR format, where a quantity of logical channel groups corresponding tothe third type of BSR format is greater than 1 and less than a quantityof the logical channel groups currently having data to-be-transmitted.

In an embodiment, determining, by the terminal, a BSR format for BSRto-be-reported according to a number of padding bits, a size of a firsttype of BSR format plus its MAC subheader, and a quantity of logicalchannel groups currently having data to-be-transmitted includesdetermining, when the number of the padding bits is greater than thesize of the first type of BSR format plus its MAC subheader, and is lessthan a sum of a maximum length of a second type of BSR format and a sizeof a MAC subheader corresponding to the second type of BSR format, andthe quantity of logical channel groups currently having datato-be-transmitted is one, to report the first type of BSR format.

In an embodiment, determining, by the terminal, a BSR format for BSRto-be-reported according to a number of padding bits, a size of a firsttype of BSR format plus its MAC subheader, and a quantity of logicalchannel groups currently having data to-be-transmitted includesdetermining, when the number of the padding bits is greater than a sumof a maximum length of a second type of BSR format and a size of a MACsubheader corresponding to the second type of BSR format, to report thesecond type of BSR format, where a quantity of logical channel groupscorresponding to the second type of BSR format is equal to a quantity ofthe logical channel groups currently having data to-be-transmitted.

In an embodiment, determining, by the terminal, a BSR format for BSRto-be-reported according to a number of padding bits, a size of a firsttype of BSR format plus its MAC subheader, and a quantity of logicalchannel groups currently having data to-be-transmitted includesdetermining, when the number of the padding bits is equal to the size ofthe first type of BSR format plus its MAC subheader, and the quantity oflogical channel groups currently having data to-be-transmitted is atleast two, to report a fourth type of BSR format, where the fourth typeof BSR format corresponds to one of the at least two logical channelgroups.

In an embodiment, determining, by the terminal, a BSR format for BSRto-be-reported according to a number of padding bits, a size of a firsttype of BSR format plus its MAC subheader, and a quantity of logicalchannel groups currently having data to-be-transmitted includesdetermining, when the number of the padding bits is equal to the size ofthe first type of BSR format plus its MAC subheader, and the quantity oflogical channel groups currently having data to-be-transmitted is one,to report the first type of BSR format, where the first type of BSRformat corresponds to the logical channel group.

In an embodiment, the second type of BSR format includes identifiers ofall the logical channel groups currently having data to-be-transmittedand buffer status information corresponding to the logical channelgroups and buffer status information of each logical channel group issequenced in an order of identifiers corresponding to each logicalchannel group.

In an embodiment, the second type of BSR format includes a first bitmap,and bits in the first bitmap correspond to the logical channel groupscurrently having data to-be-transmitted, the second type of BSR formatfurther includes buffer status information of each of the logicalchannel groups currently having data to-be-transmitted and buffer statusinformation of each logical channel group is sequenced in acorresponding arrangement order to the first bitmap.

In an embodiment, before the determining to report a third type of BSRformat, the method further includes sequencing, according to priorities,the logical channel groups currently having data to-be-transmitted andselecting, according to a priority sequencing result, some logicalchannel groups satisfying the padding bits from the logical channelgroups currently having data to-be-transmitted.

In an embodiment, the third type of BSR includes a second bitmap, andbits in the second bitmap correspond to the some logical channel groups,the third type of BSR further includes buffer status information of eachof the some logical channel groups, and buffer status information ofeach logical channel group of the some logical channel groups issequenced in a corresponding arrangement order of the some logicalchannel groups to the second bitmap.

In an embodiment, the third type of BSR includes an identifier of eachof the some logical channel groups and buffer status informationcorresponding to the logical channel groups and buffer statusinformation of each logical channel group of the some logical channelgroups is sequenced in an order of identifiers of the some logicalchannel groups.

An embodiment of the present invention further provides a terminal,where the terminal includes a triggering unit and a determining unit.The triggering unit is configured to trigger reporting of a paddingbuffer status report and the determining unit is configured to determinea BSR format for BSR to-be-reported according to a number of paddingbits, a size of a first type of BSR format plus its MAC subheader, and aquantity of logical channel groups currently having datato-be-transmitted, where a quantity of logical channel groupscorresponding to the BSR format is greater than or equal to 1, and lessthan or equal to a maximum quantity of logical channel groups currentlyhaving data to-be-transmitted.

In an embodiment, the determining unit is configured to determine, whenthe number of the padding bits is greater than the size of the firsttype of BSR format plus its MAC subheader, and is less than a sum of amaximum length of a second type of BSR format and a size of a MACsubheader corresponding to the second type of BSR format, and thequantity of logical channel groups currently having datato-be-transmitted is at least two, a BSR format for BSR to-be-reportedbased on a sum of a size of the second type of BSR format correspondingto the logical channel groups currently having data to-be-transmittedand the size of the MAC subheader corresponding to the second type ofBSR format, and the number of the padding bits.

In an embodiment, the determining unit is configured to determine, ifthe sum of the size of the second type of BSR format corresponding tothe logical channel groups currently having data to-be-transmitted andthe size of the MAC subheader corresponding to the second type of BSRformat is less than or equal to the number of the padding bits, toreport the second type of BSR format, where a quantity of logicalchannel groups corresponding to the second type of BSR format is equalto a quantity of the logical channel groups currently having datato-be-transmitted.

In an embodiment, the determining unit is configured to determine, ifthe sum of the size of the second type of BSR format corresponding tothe logical channel groups currently having data to-be-transmitted andthe size of the MAC subheader corresponding to the second type of BSRformat is greater than the number of the padding bits, to report a thirdtype of BSR format, where a quantity of logical channel groupscorresponding to the third type of BSR format is greater than 1 and lessthan a quantity of the logical channel groups currently having datato-be-transmitted.

In an embodiment, the determining unit is configured to determine, whenthe number of the padding bits is greater than the size of the firsttype of BSR format plus its MAC subheader, and is less than a sum of amaximum length of a second type of BSR format and a size of a MACsubheader corresponding to the second type of BSR format, and thequantity of logical channel groups currently having datato-be-transmitted is one, to report the first type of BSR format.

In an embodiment, the determining unit is configured to determine, whenthe number of the padding bits is greater than a sum of a maximum lengthof a second type of BSR format and a size of a MAC subheadercorresponding to the second type of BSR format, to report the secondtype of BSR format, where a quantity of logical channel groupscorresponding to the second type of BSR format is equal to a quantity ofthe logical channel groups currently having data to-be-transmitted.

In an embodiment, the determining unit is configured to determine, whenthe number of the padding bits is equal to the size of the first type ofBSR format plus its MAC subheader, and the quantity of logical channelgroups currently having data to-be-transmitted is at least two, toreport a fourth type of BSR format, where the fourth type of BSR formatcorresponds to one of the at least two logical channel groups.

In an embodiment, the determining unit is configured to determine, whenthe number of the padding bits is equal to the size of the first type ofBSR format plus its MAC subheader, and the quantity of logical channelgroups currently having data to-be-transmitted is one, to report thefirst type of BSR format, where the first type of BSR format correspondsto the logical channel group.

In an embodiment, the second type of BSR format includes identifiers ofall the logical channel groups currently having data to-be-transmittedand buffer status information corresponding to the logical channelgroups; and buffer status information of each logical channel group issequenced in an order of identifiers corresponding to each logicalchannel group.

In an embodiment, the second type of BSR format includes a first bitmap,and bits in the first bitmap correspond to the logical channel groupscurrently having data to-be-transmitted; the second type of BSR formatfurther includes buffer status information of each of the logicalchannel groups currently having data to-be-transmitted; and bufferstatus information of each logical channel group is sequenced in acorresponding arrangement order to the first bitmap.

In an embodiment, the terminal further includes a sequencing unit,configured to sequence, according to priorities, before the determiningunit determines to report the third type of BSR format, the logicalchannel groups currently having data to-be-transmitted; and select,according to a priority sequencing result, some logical channel groupssatisfying the padding bits from the logical channel groups currentlyhaving data to-be-transmitted.

In an embodiment, the third type of BSR includes a second bitmap, andbits in the second bitmap correspond to the some logical channel groups;the third type of BSR further includes buffer status information of eachof the some logical channel groups; and buffer status information ofeach logical channel group of the some logical channel groups issequenced in a corresponding arrangement order of the some logicalchannel groups to the second bitmap.

In an embodiment, the third type of BSR includes an identifier of eachof the some logical channel groups and buffer status informationcorresponding to the logical channel groups; and buffer statusinformation of each logical channel group of the some logical channelgroups is sequenced in an order of identifiers of the some logicalchannel groups.

An embodiment of the present invention further provides a computerstorage medium, storing a computer instruction, where when theinstruction is executed by a processor, a step of the buffer statusreporting method according to the embodiments of the present inventionis implemented.

An embodiment of the present invention further provides a terminal,including a memory, a processor, and a computer program stored in thememory and capable of being run on the processor, where when theprocessor executes the program, a step of the buffer status reportingmethod according to the embodiments of the present invention isimplemented.

Based on the buffer status reporting method, the terminal, and thecomputer storage medium provided in the embodiments of the presentinvention, the method includes triggering, by a terminal, reporting of apadding buffer status report; and determining, by the terminal, a BSRformat for BSR to-be-reported according to a number of padding bits, asize of a first type of BSR format plus its MAC subheader, and aquantity of logical channel groups currently having datato-be-transmitted, where a quantity of logical channel groupscorresponding to the BSR format is greater than or equal to 1, and lessthan or equal to a maximum quantity of logical channel groups currentlyhaving data to-be-transmitted. Through the technical solutions accordingto the embodiments of the present invention, a BSR format for BSRto-be-reported may correspond to logical channel groups whose quantityis greater than or equal to 1, and is less than or equal to a maximumquantity of logical channel groups currently having datato-be-transmitted, to report, as much as possible, buffer statusinformation of the logical channel groups currently having datato-be-transmitted, so that a base station can more learn a buffersituation of the terminal about the logical channel groups currentlyhaving data to-be-transmitted, and greatly implementing accuracy ofallocating a radio resource to the terminal.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic flowchart of a buffer status reporting methodaccording to an embodiment of the present invention;

FIG. 2A to FIG. 2C are schematic diagrams of BSR formats in a bufferstatus reporting method according to an embodiment of the presentinvention;

FIG. 3 is another schematic flowchart of a buffer status reportingmethod according to an embodiment of the present invention;

FIG. 4 is a schematic composition diagram of a terminal according to anembodiment of the present invention;

FIG. 5 is another schematic composition diagram of a terminal accordingto an embodiment of the present invention; and

FIG. 6 is a schematic composition diagram of hardware of a terminalaccording to an embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

The present invention is further described in detail below withreference to accompanying drawings and specific embodiments.

Embodiment 1

This embodiment of the present invention provides a buffer statusreporting method.

FIG. 1 is a schematic flowchart of a buffer status reporting methodaccording to an embodiment of the present invention. As shown in FIG. 1,the method includes:

Step 101: A terminal triggers reporting of a padding buffer statusreport (padding BSR).

Step 102: The terminal determines a BSR format for BSR to-be-reportedaccording to a number of padding bits, a size of a first type of BSRformat plus its MAC subheader, and a quantity of logical channel groupscurrently having data to-be-transmitted. A quantity of logical channelgroups corresponding to the BSR format is greater than or equal to 1,and is less than or equal to a maximum quantity of logical channelgroups currently having data to-be-transmitted.

In this embodiment, a triggering condition of the padding BSR includes,if a length of bits used for padding in an allocated uplink resource isgreater than or equal to a sum of a length of a media access controlcontrol element (MAC CE) of the BSR and a length of a corresponding MACsubheader, reporting of the padding BSR is triggered. The padding BSR iscarried in padding bits of a MAC PDU, and is encapsulated as the MAC CE.

In this embodiment, the terminal determines a BSR format for BSRto-be-reported specifically according to a number of padding bits, asize of a first type of BSR format plus its MAC subheader, and aquantity of logical channel groups currently having datato-be-transmitted. The first type of BSR may specifically be a shortBSR. FIG. 2A to FIG. 2C are each a schematic diagram of a BSR format ina buffer status reporting method according to an embodiment of thepresent invention. FIG. 2A is a schematic diagram of a short BSR format,including a 1-byte MAC subheader and a 1-byte short BSR. The MACsubheader includes a logical channel identifier (LCID), where the LCIDindicates a type of a corresponding MAC CE, that is, the LCID indicatesa type of a BSR format for BSR to-be-reported. The short BSR includes anidentifier (LCG ID) of only one logical channel group currently havingdata to-be-transmitted, and a size of buffer status information of thelogical channel group is represented through a buffer size (BS).

In a first implementation, the determining, by the terminal, a BSRformat for BSR to-be-reported according to a number of padding bits, asize of a first type of BSR format plus its MAC subheader, and aquantity of logical channel groups currently having datato-be-transmitted includes determining, when the number of the paddingbits is greater than the size of the first type of BSR format plus itsMAC subheader, and is less than a sum of a maximum length of a secondtype of BSR format and a size of a MAC subheader corresponding to thesecond type of BSR format, and the quantity of logical channel groupscurrently having data to-be-transmitted is at least two, a BSR formatfor BSR to-be-reported based on a sum of a size of the second type ofBSR format corresponding to the logical channel groups currently havingdata to-be-transmitted and the size of the MAC subheader correspondingto the second type of BSR format, and the number of the padding bits.

Determining a BSR format for BSR to-be-reported based on a sum of a sizeof the second type of BSR format corresponding to the logical channelgroups currently having data to-be-transmitted and the size of the MACsubheader corresponding to the second type of BSR format, and the numberof the padding bits includes determining, if the sum of the size of thesecond type of BSR format corresponding to the logical channel groupscurrently having data to-be-transmitted and the size of the MACsubheader corresponding to the second type of BSR format is less than orequal to the padding bits, to report the second type of BSR format,where a quantity of logical channel groups corresponding to the secondtype of BSR format is equal to a quantity of the logical channel groupscurrently having data to-be-transmitted.

Determining a BSR format for BSR to-be-reported based on a sum of a sizeof the second type of BSR format corresponding to the logical channelgroups currently having data to-be-transmitted and the size of the MACsubheader corresponding to the second type of BSR format, and the numberof the padding bits includes determining, if the sum of the size of thesecond type of BSR format corresponding to the logical channel groupscurrently having data to-be-transmitted and the size of the MACsubheader corresponding to the second type of BSR format is greater thanthe number of the padding bits, to report a third type of BSR format,where a quantity of logical channel groups corresponding to the thirdtype of BSR format is greater than 1, and is less than a quantity of thelogical channel groups currently having data to-be-transmitted.

Specifically, in this implementation, the number of the padding bits iscompared with the size of the first type of BSR format plus its MACsubheader, and the number of the padding bits is compared with the sumof the maximum length of the second type of BSR format and the size ofthe MAC subheader corresponding to the second type of BSR format. Thefirst type of BSR format may be shown with reference to FIG. 2A, and thesize of the first type of BSR format plus its MAC subheader is 2 bytes.In this embodiment, the second type of BSR is specifically a flexiblelong BSR, and a flexible long BSR format may be shown specifically withreference to FIG. 2B or FIG. 2C. In a 5G system, a maximum quantity oflogical channel groups that may be configured to report a BSR is eight,that is, a BSR format may include buffer status information of maximallyeight logical channel groups. FIG. 2B is a schematic diagram of aflexible long BSR format, including: a bitmap (the bitmap is marked as afirst bitmap), where bits in the first bitmap correspond to logicalchannel groups currently having data to-be-transmitted; furtherincluding buffer status information of each logical channel group of thelogical channel groups currently having data to-be-transmitted, wherethe buffer status information of each logical channel group is sequencedin a corresponding order in the first bitmap; and further including a1-byte MAC subheader, where the MAC subheader includes an LCD, the LCIDindicates a type of a corresponding MAC CE, that is, the LCID indicatesa type of a BSR format for BSR to-be-reported. Specifically, a bit inthe first bitmap is 1 or 0 to represent whether buffer statusinformation of an LCG corresponding to the bit is included in theflexible long BSR. If a bit is 1, it represents that buffer statusinformation of an LCG corresponding to the bit is included in theflexible long BSR. If a bit is 0, it represents that buffer statusinformation of an LCG corresponding to the bit is not included in theflexible long BSR, that is, there is no buffer status information of anLCG corresponding to the bit. A size of buffer status information of alogical channel group may be 6 bits shown in FIG. 2B, but is not limitedto a length of 6 bits currently, and may be further a length greaterthan 6 bits. Therefore, a maximum length of the flexible long BSR ischanged according to the size of the buffer status information of thelogical channel group. When the size of the buffer status information ofthe logical channel group is 6 bits shown in FIG. 2B, a sum of themaximum length of the flexible long BSR and the size of the MACsubheader corresponding to the flexible long BSR is 8 bytes.

FIG. 2C is a schematic diagram of another flexible long BSR format,including identifiers of all logical channel groups currently havingdata to-be-transmitted and buffer status information corresponding tothe logical channel groups, where buffer status information of eachlogical channel group is sequenced in a corresponding order of theidentifiers; and further including a 2-byte MAC subheader, where the MACsubheader includes length information of an LCD and a BSR, and lengthinformation of a flexible long BSR may be indicated through “L” in theMAC subheader. A length of an identifier of a logical channel group maybe 3 bits shown in FIG. 2C. A size of buffer status information of thelogical channel group may be 6 bits shown in FIG. 2C, but is not limitedto a length of 6 bits currently, and may be further a length greaterthan 6 bits. Therefore, a maximum length of the flexible long BSR ischanged according to the size of the buffer status information of thelogical channel group. When the size of the buffer status information ofthe logical channel group is 6 bits shown in FIG. 2C, a sum of themaximum length of the flexible long BSR and the size of the MACsubheader corresponding to the flexible long BSR is 11 bytes.

Based on this, in this implementation, when a number of padding bits isgreater than 2 bytes but is less than the sum of the maximum length ofthe flexible long BSR and the size of the MAC subheader corresponding tothe flexible long BSR, and a quantity of logical channel groupscurrently having data to-be-transmitted is at least two, if a sum of asize of a flexible long BSR format corresponding to a logical channelgroup currently having data to-be-transmitted and a size of acorresponding MAC subheader is less than or equal to the number of thepadding bits, it is determined to report the flexible long BSR format;or if a sum of a size of a flexible long BSR format corresponding to alogical channel group currently having data to-be-transmitted and a sizeof a corresponding MAC subheader is greater than the number of thepadding bits, it is determined to report a third type of BSR format,where a quantity of logical channel groups corresponding to the thirdtype of BSR format is greater than 1, and is less than a quantity of thelogical channel groups currently having data to-be-transmitted.

Herein, the third type of BSR may specifically be a flexible truncatedBSR. A flexible truncated BSR format may also be shown specifically withreference to FIG. 2B and FIG. 2C, and a difference lies in that aflexible truncated BSR and a flexible long BSR in a same formatcorrespond to different LCIDs in subheaders. FIG. 2B is a schematicdiagram of a flexible truncated BSR format, including: a bitmap (thebitmap is marked as a second bitmap); further including buffer statusinformation of each logical channel group of some logical channel groupscurrently having buffer to-be-transmitted data, where the buffer statusinformation of each logical channel group of the some logical channelgroups is sequenced in a corresponding order of the some logical channelgroups in the second bitmap; and further including a 1-byte MACsubheader, where the MAC subheader includes an LCID. The LCID indicatesa type of a corresponding MAC CE, that is, the LCID indicates a type ofa BSR format for BSR to-be-reported. A bit in the second bitmap is 1 or0 to represent whether buffer status information of an LCG correspondingto the bit is included in the flexible truncated BSR. If a bit is 1, itrepresents that buffer status information of an LCG corresponding to thebit is included in the flexible truncated BSR. If a bit is 0, itrepresents that buffer status information of an LCG corresponding to thebit is not included in the flexible truncated BSR, that is, there is nobuffer status information of an LCG corresponding to the bit. A size ofbuffer status information of a logical channel group may be 6 bits shownin FIG. 2B, but is not limited to a length of 6 bits currently, and maybe further a length greater than 6 bits. Therefore, a maximum length ofthe flexible truncated BSR is changed according to the size of thebuffer status information of the logical channel group. When the size ofthe buffer status information of the logical channel group is 6 bitsshown in FIG. 2B, a sum of the maximum length of the flexible truncatedBSR and the size of the MAC subheader corresponding to the flexibletruncated BSR is 8 bytes.

FIG. 2C is a schematic diagram of another flexible truncated BSR format,including identifiers of some logical channel groups of all logicalchannel groups currently having data to-be-transmitted and buffer statusinformation corresponding to the logical channel groups, where thebuffer status information of the some logical channel groups issequenced in an order of the identifiers of the some logical channelgroups; and further including a 2-byte MAC subheader, the MAC subheaderincludes length information of an LCID and a BSR, and length informationof a flexible truncated BSR may be indicated through “L” in the MACsubheader. A length of an identifier of a logical channel group may be 3bits shown in FIG. 2C; and a size of buffer status information of thelogical channel group may be 6 bits shown in FIG. 2C, but is not limitedto a length of 6 bits currently, and may be further a length greaterthan 6 bits. Therefore, a maximum length of the flexible truncated BSRis changed according to the size of the buffer status information of thelogical channel group. When the size of the buffer status information ofthe logical channel group is 6 bits shown in FIG. 2C, a sum of themaximum length of the flexible truncated BSR and the size of the MACsubheader corresponding to the flexible truncated BSR is 11 bytes.

Herein, before the determining to report a third type of BSR format, themethod further includes sequencing, according to priorities, the logicalchannel groups currently having data to-be-transmitted; and selecting,according to a priority sequencing result, some logical channel groupssatisfying the padding bits from the logical channel groups currentlyhaving data to-be-transmitted. A priority of a logical channel group maybe specifically a priority of a logical channel in the logical channelgroup. In an implementation, a highest priority of a logical channelincluded in a logical channel group may be used as a priority of thelogical channel group. During actual application, the logical channelgroups currently having data to-be-transmitted are sequenced indescending order of priorities; and some logical channel groups of thelogical channel groups currently having data to-be-transmitted areselected in descending order based on the number of the padding bits,because the number of the padding bits cannot satisfy all the logicalchannel groups currently having data to-be-transmitted.

Based on this, although the second type of BSR format (flexible longBSR) and the third type of BSR format (flexible truncated BSR) may be asame format, the second type of BSR format includes buffer statusinformation of all the logical channel groups currently having datato-be-transmitted, while the third type of BSR format includes bufferstatus information of only some logical channel groups of the logicalchannel groups currently having data to-be-transmitted.

In a second implementation, the determining, by the terminal, a BSRformat for BSR to-be-reported according to a number of padding bits, asize of a first type of BSR format plus its MAC subheader, and aquantity of logical channel groups currently having datato-be-transmitted includes determining, when the number of the paddingbits is greater than the size of the first type of BSR format plus itsMAC subheader, and is less than a sum of a maximum length of a secondtype of BSR format and a size of a MAC subheader corresponding to thesecond type of BSR format, and the quantity of logical channel groupscurrently having data to-be-transmitted is one, to report the first typeof BSR format.

Specifically, in this implementation, when the number of the paddingbits is greater than 2 bytes but is less than a sum of the maximumlength of the flexible long BSR and the size of the MAC subheadercorresponding to the flexible long BSR, and a quantity of logicalchannel groups currently having data to-be-transmitted is at least two,it is determined to report the short BSR format, that is, report,through the format shown in FIG. 2A, buffer status information of onlyone logical channel group currently having data to-be-transmitted, wherean LCID in the MAC subheader in the reported short BSR format indicatesa corresponding MAC CE type, that is, the LCID indicates a type of theBSR format for BSR to-be-reported.

In a third implementation, the determining, by the terminal, a BSRformat for BSR to-be-reported according to a number of padding bits, asize of a first type of BSR format plus its MAC subheader, and aquantity of logical channel groups currently having datato-be-transmitted includes determining, when the number of the paddingbits is greater than a sum of a maximum length of a second type of BSRformat and a size of a MAC subheader corresponding to the second type ofBSR format, to report the second type of BSR format, where a quantity oflogical channel groups corresponding to the second type of BSR format isequal to a quantity of the logical channel groups currently having datato-be-transmitted.

Specifically, in this implementation, when the number of the paddingbits is greater than a sum of the maximum length of the flexible longBSR and the size of the MAC subheader corresponding to the flexible longBSR, it is determined to report the flexible long BSR format, where theflexible long BSR format includes identifiers of all the logical channelgroups currently having data to-be-transmitted and buffer statusinformation corresponding to the logical channel groups.

In a fourth implementation, the determining, by the terminal, a BSRformat for BSR to-be-reported according to a number of padding bits, asize of a first type of BSR format plus its MAC subheader, and aquantity of logical channel groups currently having datato-be-transmitted includes determining, when the number of the paddingbits is equal to the size of the first type of BSR format plus its MACsubheader, and the quantity of logical channel groups currently havingdata to-be-transmitted is at least two, to report a fourth type of BSRformat, where the fourth type of BSR format corresponds to one of the atleast two logical channel groups.

Specifically, in this implementation, when the number of the paddingbits is equal to the sum (that is, 2 bytes) of the size of the firsttype of BSR format and the size of the MAC subheader corresponding tothe first type of BSR format, and a quantity of logical channel groupscurrently having data to-be-transmitted is at least two, it isdetermined to report the fourth type of BSR format, where the fourthtype of BSR format may be specifically the truncated BSR format, andwith reference to the format shown in FIG. 2A, the truncated BSR formatmay include a 1-byte MAC subheader and a 1-byte truncated BSR, where anLCID in the MAC subheader indicates a corresponding MAC CE type, thatis, the LCID indicates a type of the BSR format for BSR to-be-reported;and the truncated BSR includes an identifier (LCG ID) of one logicalchannel group of at least two logical channel groups currently havingbuffer to-be-transmitted data, and a size of buffer status informationof the logical channel group is represented through a buffer size.

In a fifth implementation, the determining, by the terminal, a BSRformat for BSR to-be-reported according to a number of padding bits, asize of a first type of BSR format plus its MAC subheader, and aquantity of logical channel groups currently having datato-be-transmitted includes determining, when the number of the paddingbits is equal to the size of the first type of BSR format plus its MACsubheader, and the quantity of logical channel groups currently havingdata to-be-transmitted is one, to report the first type of BSR format,where the first type of BSR format corresponds to the logical channelgroup.

Specifically, in this implementation, when the number of the paddingbits is greater than or equal to the sum (that is, 2 bytes) of the sizeof the first type of BSR format and the size of the MAC subheadercorresponding to the first type of BSR format, and a quantity of logicalchannel groups currently having data to-be-transmitted is one, it isdetermined to report the first type of BSR format, that is, report theshort BSR format.

FIG. 3 is another schematic flowchart of a buffer status reportingmethod according to an embodiment of the present invention. As shown inFIG. 3, the buffer status reporting method according to this embodimentof the present invention is described by using an example in which afirst type of BSR is a short BSR, a second type of BSR is a flexiblelong BSR, a third type of BSR is a flexible truncated BSR, and a fourthtype of BSR is a truncated BSR. The foregoing buffer status reportingmethod may be implemented through the following process:

Step 201: A terminal triggers reporting of a padding BSR.

Step 202: The terminal judges whether a number of padding bits isgreater than a sum of a size of a short BSR format and a size of acorresponding MAC subheader, and is less than a sum of a maximum lengthof a flexible long BSR format and a size of a corresponding MACsubheader. When a judgment result is that the number of the padding bitsis greater than the sum of the size of the short BSR format and the sizeof the MAC subheader corresponding to the short BSR format, and is lessthan the sum of the maximum length of the flexible long BSR format andthe size of the MAC subheader corresponding to the flexible long BSRformat, step 203 is performed; when a judgment result is that the numberof the padding bits is less than or equal to the sum of the size of theshort BSR format and the size of the MAC subheader corresponding to theshort BSR format, step 208 is performed; or when a judgment result isthat the number of the padding bits is greater than the sum of themaximum length of the flexible long BSR format and the size of the MACsubheader corresponding to the flexible long BSR format, step 206 isperformed.

Step 203: Judge whether a quantity of logical channel groups currentlyhaving data to-be-transmitted is greater than 1. When a judgment resultis that the quantity of logical channel groups currently having datato-be-transmitted is greater than 1, step 204 to step 206 are performed;or when a judgment result is that the quantity of logical channel groupscurrently having data to-be-transmitted is equal to 1, step 207 isperformed.

Step 204: Judge whether a size of the flexible long BSR formatcorresponding to the logical channel groups currently having datato-be-transmitted and the size of the MAC subheader corresponding to theflexible long BSR format is greater than the number of the padding bits.When a judgment result is that the sum of the size of the flexible longBSR format corresponding to the logical channel groups currently havingdata to-be-transmitted and the size of the MAC subheader correspondingto the flexible long BSR format is greater than the number of thepadding bits, step 205 is performed; or when a judgment result is thatthe sum of the size of the flexible long BSR format corresponding to thelogical channel groups currently having data to-be-transmitted and thesize of the MAC subheader corresponding to the flexible long BSR formatis less than or equal to the number of the padding bits, step 206 isperformed.

Step 205: Determine to report the flexible truncated BSR format.

Step 206: Determine to report the flexible long BSR format.

Step 207: Determine to report the short BSR format.

Step 208: Judge whether a quantity of logical channel groups currentlyhaving data to-be-transmitted is greater than 1. When a judgment resultis that the quantity of logical channel groups currently having datato-be-transmitted is greater than 1, step 209 is performed; or when ajudgment result is that the quantity of logical channel groups currentlyhaving data to-be-transmitted is equal to 1, step 207 is performed.

Step 209: Determine to report the truncated BSR format.

Through the technical solution according to this embodiment of thepresent invention, a BSR format for BSR to-be-reported may correspond tological channel groups whose quantity is greater than or equal to 1, andis less than or equal to a maximum quantity of logical channel groupscurrently having data to-be-transmitted, to report, as much as possible,buffer status information of the logical channel groups currently havingdata to-be-transmitted, so that a base station can more learn a buffersituation of the terminal about the logical channel groups currentlyhaving data to-be-transmitted, and greatly implementing accuracy ofallocating a radio resource to the terminal.

Embodiment 2

This embodiment of the present invention further provides a terminal.FIG. 4 is a schematic composition diagram of a terminal according to anembodiment of the present invention. As shown in FIG. 4, the terminalincludes a triggering unit 31 and a determining unit 32.

The triggering unit 31 is configured to trigger reporting of a paddingbuffer status report.

The determining unit 32 is configured to determine a BSR format for BSRto-be-reported according to a number of padding bits, a size of a firsttype of BSR format plus its MAC subheader, and a quantity of logicalchannel groups currently having data to-be-transmitted, where a quantityof logical channel groups corresponding to the BSR format is greaterthan or equal to 1, and less than or equal to a maximum quantity oflogical channel groups currently having data to-be-transmitted.

In a first implementation, the determining unit 32 is configured todetermine, when the number of the padding bits is greater than the sizeof the first type of BSR format plus its MAC subheader, and is less thana sum of a maximum length of a second type of BSR format and a size of aMAC subheader corresponding to the second type of BSR format, and thequantity of logical channel groups currently having datato-be-transmitted is at least two, a BSR format for BSR to-be-reportedbased on a sum of a size of the second type of BSR format correspondingto the logical channel groups currently having data to-be-transmittedand the size of the MAC subheader corresponding to the second type ofBSR format, and the number of the padding bits.

The determining unit 32 is configured to determine, if the sum of thesize of the second type of BSR format corresponding to the logicalchannel groups currently having data to-be-transmitted and the size ofthe MAC subheader corresponding to the second type of BSR format is lessthan or equal to the number of the padding bits, to report the secondtype of BSR format, where a quantity of logical channel groupscorresponding to the second type of BSR format is equal to a quantity ofthe logical channel groups currently having data to-be-transmitted.

The determining unit 32 is configured to determine, if the sum of thesize of the second type of BSR format corresponding to the logicalchannel groups currently having data to-be-transmitted and the size ofthe MAC subheader corresponding to the second type of BSR format isgreater than the number of the padding bits, to report a third type ofBSR format, where a quantity of logical channel groups corresponding tothe third type of BSR format is greater than 1 and less than a quantityof the logical channel groups currently having data to-be-transmitted.

In a second implementation, the determining unit 32 is configured todetermine, when the number of the padding bits is greater than the sizeof the first type of BSR format plus its MAC subheader, and is less thana sum of a maximum length of a second type of BSR format and a size of aMAC subheader corresponding to the second type of BSR format, and thequantity of logical channel groups currently having datato-be-transmitted is one, to report the first type of BSR format.

In a third implementation, the determining unit 32 is configured todetermine, when the number of the padding bits is greater than a sum ofa maximum length of a second type of BSR format and a size of a MACsubheader corresponding to the second type of BSR format, to report thesecond type of BSR format, where a quantity of logical channel groupscorresponding to the second type of BSR format is equal to a quantity ofthe logical channel groups currently having data to-be-transmitted.

In a fourth implementation, the determining unit 32 is configured todetermine, when the number of the padding bits is equal to the size ofthe first type of BSR format plus its MAC subheader, and the quantity oflogical channel groups currently having data to-be-transmitted is atleast two, to report a fourth type of BSR format, where the fourth typeof BSR format corresponds to one of the at least two logical channelgroups.

In a fifth implementation, the determining unit 32 is configured todetermine, when the number of the padding bits is equal to the size ofthe first type of BSR format plus its MAC subheader, and the quantity oflogical channel groups currently having data to-be-transmitted is one,to report the first type of BSR format, where the first type of BSRformat corresponds to the logical channel group.

In this embodiment, in an implementation, the second type of BSR formatincludes identifiers of all the logical channels currently having datato-be-transmitted and buffer status information corresponding to thelogical channel groups; and buffer status information of each logicalchannel group is sequenced in an order of identifiers corresponding toeach logical channel group.

In another implementation, the second type of BSR format includes afirst bitmap, and bits in the first bitmap correspond to the logicalchannel groups currently having data to-be-transmitted; the second typeof BSR format further includes buffer status information of each of thelogical channel groups currently having data to-be-transmitted; andbuffer status information of each logical channel group is sequenced ina corresponding arrangement order to the first bitmap.

FIG. 5 is another schematic composition diagram of a terminal accordingto an embodiment of the present invention. As shown in FIG. 5, theterminal further includes a sequencing unit 33, configured to sequence,according to priorities, before the determining unit 32 determines toreport the third type of BSR format, the logical channel groupscurrently having data to-be-transmitted; and select, according to apriority sequencing result, some logical channel groups satisfying thepadding bits from the logical channel groups currently having datato-be-transmitted.

In this embodiment, in an implementation, the third type of BSR includesa second bitmap, and bits in the second bitmap correspond to the somelogical channel groups; the third type of BSR further includes bufferstatus information of each of the some logical channel groups; andbuffer status information of each logical channel group of the somelogical channel groups is sequenced in a corresponding arrangement orderof the some logical channel groups to the second bitmap.

In another implementation, the third type of BSR includes an identifierof each of the some logical channel groups and buffer status informationcorresponding to the logical channel groups; and buffer statusinformation of each logical channel group of the some logical channelgroups is sequenced in an order of identifiers of the some logicalchannel groups.

In this embodiment of the present invention, the triggering unit 31, thedetermining unit 32, and the sequencing unit 33 in the terminal may beimplemented by a central processing unit (CPU), a digital signalprocessor (DSP), a microcontroller unit (MCU), or a field-programmablegate array (FPGA) during actual application.

It should be noted that when the terminal provided in the foregoingembodiment performs information processing, description is made onlythrough examples of division of the program modules. In an actualapplication, the foregoing processing may be assigned according to needsto be implemented by different program modules, that is, the internalstructure of the terminal is divided into different program modules, soas to implement all or a part of the processing described above.Furthermore, the terminal embodiment provided in the foregoingembodiments belongs to the same idea as the buffer status reportingmethod embodiment, and the method embodiment may serve as a referencefor details of a specific implementation process thereof, which are notrepeated herein.

Embodiment 3

This embodiment of the present invention further provides a terminal.FIG. 6 is a schematic composition diagram of hardware of a terminalaccording to an embodiment of the present invention. As shown in FIG. 6,the terminal includes at least one processor 41 and a memory 42configured to store a computer program capable of being run on theprocessor 41, and the terminal may further include a communicationscomponent 43. Components in the terminal are coupled together through abus system 44. It can be understood that, the bus system 44 isconfigured to implement connection and communication between thesecomponents; and in addition to a data bus, the bus system 44 furtherincludes a power bus, a control bus, and a status signal bus. However,for the sake of clear description, various buses are all marked as thebus system 44 in FIG. 6.

It can be understood that, the memory 42 may be a volatile memory or anon-volatile memory, or may include both a volatile memory and anon-volatile memory. The non-volatile memory may be a read-only memory(ROM), a programmable read-only memory (PROM), an erasable programmableread-only memory (EPROM), an electrically erasable programmableread-only memory (EEPROM), a ferromagnetic random access memory (FRAM),a flash memory, a magnetic surface memory, an optical disc, or a compactdisc read-only memory (CD-ROM). The magnetic surface memory may be amagnetic disk memory or a magnetic tape memory. The volatile memory maybe a random access memory (RAM), and is used as an external cache. Byway of example, and not limitation, many forms of RAMs are available,for example, a static random access memory (SRAM), a synchronous staticrandom access memory (SSRAM), a dynamic random access memory (DRAM), asynchronous dynamic random access memory (SDRAM), a double data ratesynchronous dynamic random access memory (DDR SDRAM), an enhancedsynchronous dynamic random access memory (ESDRAM), a SyncLink dynamicrandom access memory (SLDRAM), and a direct Rambus random access memory(DRRAIVI). The memory 42 described in this embodiment of the presentinvention aims to include but not limited to these memories and anyother suitable types of memories.

The method disclosed in the foregoing embodiment of the presentinvention may be applied to the processor 41 or implemented by theprocessor 41. The processor 41 may be an integrated circuit chip, andhas a signal processing capability. During implementation, the steps ofthe foregoing method may be implemented by using a hardware integratedlogic circuit in the processor 41 or implemented by using an instructionin a software form. The processor 41 may be a general purpose processor,a DSP, another programmable logic device, a discrete gate or atransistor logic device, a discrete hardware component, or the like. Theprocessor 41 may implement or perform methods, steps, and logical blockdiagrams disclosed in the embodiments of the present invention. Thegeneral purpose processor may be a microprocessor, any conventionalprocessor, or the like. Steps of the methods disclosed with reference tothe embodiments of the present invention may be directly executed andcompleted by means of a hardware decoding processor, or may be executedand completed by using a combination of hardware and software modules inthe decoding processor. The software module may be located in a storagemedium, the storage medium is located in the memory 42, and theprocessor 41 reads information in the memory 42, and completes steps ofthe foregoing method in combination with hardware of the processor.

In an example of an embodiment, the terminal may be implemented by oneor more application-specific integrated circuits (ASIC), DSPs,programmable logic devices (PLD), complex programmable logic devices(CPLD), FPGAs, general purpose processors, controllers, MCUs,microprocessors, or other electronic elements, to perform the foregoingmethod.

In this embodiment, when executing the program, the processor 41implements triggering reporting of a padding buffer status report; anddetermining, by the terminal, a BSR format for BSR to-be-reportedaccording to a number of padding bits, a size of a first type of BSRformat plus its MAC subheader, and a quantity of logical channel groupscurrently having data to-be-transmitted, where a quantity of logicalchannel groups corresponding to the BSR format is greater than or equalto 1, and less than or equal to a maximum quantity of logical channelgroups currently having data to-be-transmitted.

In an implementation, when executing the program, the processor 41implements determining, when the number of the padding bits is greaterthan the size of the first type of BSR format plus its MAC subheader,and is less than a sum of a maximum length of a second type of BSRformat and a size of a MAC subheader corresponding to the second type ofBSR format, and the quantity of logical channel groups currently havingdata to-be-transmitted is at least two, a BSR format for BSRto-be-reported based on a sum of a size of the second type of BSR formatcorresponding to the logical channel groups currently having datato-be-transmitted and the size of the MAC subheader corresponding to thesecond type of BSR format, and the number of the padding bits.

When executing the program, the processor 41 implements determining, ifthe sum of the size of the second type of BSR format corresponding tothe logical channel groups currently having data to-be-transmitted andthe size of the MAC subheader corresponding to the second type of BSRformat is less than or equal to the number of the padding bits, toreport the second type of BSR format, where a quantity of logicalchannel groups corresponding to the second type of BSR format is equalto a quantity of the logical channel groups currently having datato-be-transmitted.

When executing the program, the processor 41 implements determining, ifthe sum of the size of the second type of BSR format corresponding tothe logical channel groups currently having data to-be-transmitted andthe size of the MAC subheader corresponding to the second type of BSRformat is greater than the number of the padding bits, to report a thirdtype of BSR format, where a quantity of logical channel groupscorresponding to the third type of BSR format is greater than 1 and lessthan a quantity of the logical channel groups currently having datato-be-transmitted.

In an implementation, when executing the program, the processor 41implements determining, when the number of the padding bits is greaterthan the size of the first type of BSR format plus its MAC subheader,and is less than a sum of a maximum length of a second type of BSRformat and a size of a MAC subheader corresponding to the second type ofBSR format, and the quantity of logical channel groups currently havingdata to-be-transmitted is one, to report the first type of BSR format.

In an implementation, when executing the program, the processor 41implements determining, when the number of the padding bits is greaterthan a sum of a maximum length of a second type of BSR format and a sizeof a MAC subheader corresponding to the second type of BSR format, toreport the second type of BSR format, where a quantity of logicalchannel groups corresponding to the second type of BSR format is equalto a quantity of the logical channel groups currently having datato-be-transmitted.

In an implementation, when executing the program, the processor 41implements determining, when the number of the padding bits is equal tothe size of the first type of BSR format plus its MAC subheader, and thequantity of logical channel groups currently having datato-be-transmitted is at least two, to report a fourth type of BSRformat, where the fourth type of BSR format corresponds to one of the atleast two logical channel groups.

In an implementation, when executing the program, the processor 41implements determining, when the number of the padding bits is equal tothe size of the first type of BSR format plus its MAC subheader, and thequantity of logical channel groups currently having datato-be-transmitted is one, to report the first type of BSR format, wherethe first type of BSR format corresponds to the logical channel group.

In an implementation, when executing the program, the processor 41implements sequencing, according to priorities before determining toreport the third type of BSR format, the logical channel groupscurrently having data to-be-transmitted; and selecting, according to apriority sequencing result, some logical channel groups satisfying thepadding bits from the logical channel groups currently having datato-be-transmitted.

Embodiment 4

This embodiment of the present invention further provides a computerstorage medium, including, for example, the memory 42 shown in FIG. 6and storing a computer program, and the foregoing computer program maybe executed by the processor 41 of the device, so as to complete thesteps described in the foregoing method. The computer storage medium maybe a memory such as an FRAM, a ROM, a PROM, an EPROM, an EEPROM, a flashmemory, a magnetic surface memory, an optical disc, or a CD-ROM; or maybe various devices including one of or any combination of the foregoingmemories.

In this embodiment, the computer storage medium provided in thisembodiment of the present invention stores the computer program, andwhen the computer program is run by the processor, the following isperformed: triggering reporting of a padding buffer status report; anddetermining, by the terminal, a BSR format for BSR to-be-reportedaccording to a number of padding bits, a size of a first type of BSRformat plus its MAC subheader, and a quantity of logical channel groupscurrently having data to-be-transmitted, where a quantity of logicalchannel groups corresponding to the BSR format is greater than or equalto 1, and less than or equal to a maximum quantity of logical channelgroups currently having data to-be-transmitted.

In an implementation, when the computer program is run by the processor,the following is performed: determining, when the number of the paddingbits is greater than the size of the first type of BSR format plus itsMAC subheader, and is less than a sum of a maximum length of a secondtype of BSR format and a size of a MAC subheader corresponding to thesecond type of BSR format, and the quantity of logical channel groupscurrently having data to-be-transmitted is at least two, a BSR formatfor BSR to-be-reported based on a sum of a size of the second type ofBSR format corresponding to the logical channel groups currently havingdata to-be-transmitted and the size of the MAC subheader correspondingto the second type of BSR format, and the number of the padding bits.

When the computer program is run by the processor, the following isperformed: determining, if the sum of the size of the second type of BSRformat corresponding to the logical channel groups currently having datato-be-transmitted and the size of the MAC subheader corresponding to thesecond type of BSR format is less than or equal to the number of thepadding bits, to report the second type of BSR format, where a quantityof logical channel groups corresponding to the second type of BSR formatis equal to a quantity of the logical channel groups currently havingdata to-be-transmitted.

When the computer program is run by the processor, the following isperformed: determining, if the sum of the size of the second type of BSRformat corresponding to the logical channel groups currently having datato-be-transmitted and the size of the MAC subheader corresponding to thesecond type of BSR format is greater than the number of the paddingbits, to report a third type of BSR format, where a quantity of logicalchannel groups corresponding to the third type of BSR format is greaterthan 1 and less than a quantity of the logical channel groups currentlyhaving data to-be-transmitted.

In an implementation, when the computer program is run by the processor,the following is performed: determining, when the number of the paddingbits is greater than the size of the first type of BSR format plus itsMAC subheader, and is less than a sum of a maximum length of a secondtype of BSR format and a size of a MAC subheader corresponding to thesecond type of BSR format, and the quantity of logical channel groupscurrently having data to-be-transmitted is one, to report the first typeof BSR format.

In an implementation, when the computer program is run by the processor,the following is performed: determining, when the number of the paddingbits is greater than a sum of a maximum length of a second type of BSRformat and a size of a MAC subheader corresponding to the second type ofBSR format, to report the second type of BSR format, where a quantity oflogical channel groups corresponding to the second type of BSR format isequal to a quantity of the logical channel groups currently having datato-be-transmitted.

In an implementation, when the computer program is run by the processor,the following is performed: determining, when the number of the paddingbits is equal to the size of the first type of BSR format plus its MACsubheader, and the quantity of logical channel groups currently havingdata to-be-transmitted is at least two, to report a fourth type of BSRformat, where the fourth type of BSR format corresponds to one of the atleast two logical channel groups.

In an implementation, when the computer program is run by the processor,the following is performed: determining, when the number of the paddingbits is equal to the size of the first type of BSR format plus its MACsubheader, and the quantity of logical channel groups currently havingdata to-be-transmitted is one, to report the first type of BSR format,where the first type of BSR format corresponds to the logical channelgroup.

In an implementation, when the computer program is run by the processor,the following is performed: sequencing, according to priorities beforedetermining to report the third type of BSR format, the logical channelgroups currently having data to-be-transmitted; and selecting, accordingto a priority sequencing result, some logical channel groups satisfyingthe padding bits from the logical channel groups currently having datato-be-transmitted.

In the embodiments provided in this application, it should be understoodthat the disclosed terminal and method may be implemented in othermanners. The described device embodiment is merely an example. Forexample, the unit division is merely logical function division and maybe other division in actual implementation. For example, a plurality ofunits or components may be combined or integrated into another system,or some features may be ignored or not performed. In addition, coupling,direct coupling, or communication connection between the displayed ordiscussed components may be implemented through some interfaces. Theindirect couplings or communication connections between the devices orunits may be implemented in electrical, mechanical or other forms.

The foregoing units described as separate parts may or may not bephysically separate, and parts displayed as units may or may not bephysical units, may be located in one position, or may be distributed ona plurality of network units. Some or all of the units may be selectedaccording to actual needs to achieve the objectives of the solutions ofthe embodiments.

In addition, functional units in the embodiments of the presentinvention may be all integrated into one processing unit, or each of theunits may exist alone, or two or more units are integrated into oneunit. The integrated unit may be implemented through hardware, or mayalso be implemented in a form of hardware plus a software functionalmodule.

Persons of ordinary skill in the art should understand that all or someof the steps of the method embodiment may be implemented by a programinstructing relevant hardware. The program may be stored in a computerreadable storage medium. When the program is executed, the steps in theforegoing method embodiment are performed. The storage medium may be anymedium that is capable of storing program code, such as a removablestorage device, a ROM, a RAM, a magnetic disk, or an optical disc.

Alternatively, when the foregoing integrated unit in the presentinvention is implemented in the form of a software functional module andsold or used as an independent product, the integrated unit may bestored in a computer-readable storage medium. Based on suchunderstanding, the essence of the technical solution under theembodiments of the present invention or the contributions to the priorart may be embodied as a software product. The software product isstored in a storage medium, and includes several instructions thatenable a computer device (a PC, a server or a network device) to performall or some of the steps of the methods provided in the embodiments ofthe present invention. The storage medium may be any medium that iscapable of storing program code, such as a removable storage device, aROM, a RAM, a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementation manners ofthe present invention, but are not intended to limit the protectionscope of the present invention. Any variation or replacement readilyfigured out by a person skilled in the art within the technical scopedisclosed in the present invention shall fall within the protectionscope of the present invention. Therefore, the protection scope of thepresent invention shall be subject to the protection scope of theclaims.

What is claimed is:
 1. A method for buffer status reporting comprising:triggering, by a terminal, reporting of a padding buffer status report(padding BSR); and determining, by the terminal, a BSR format forBSR-to-be reported according to a number of padding bits, a size of BSRwith a first type of BSR format plus its media access control (MAC)subheader, and a quantity of logical channel groups having datato-be-transmitted, wherein a quantity of logical channel groupscorresponding to the BSR format is greater than or equal to
 1. 2. Themethod according to claim 1, wherein the quantity of logical channelgroups corresponding to the BSR format is less than or equal to aquantity of logical channel groups having data to-be-transmitted.
 3. Themethod according to claim 1, wherein determining, by the terminal, a BSRformat for BSR-to-be reported according to a number of padding bits, asize of BSR with a first type of BSR format plus its media accesscontrol (MAC) subheader, and a quantity of logical channel groups havingdata to-be-transmitted comprises: determining, according to a size ofBSR with a second type of BSR format plus its MAC subheadercorresponding to the logical channel groups having datato-be-transmitted, and the number of the padding bits, a BSR format forBSR-to-be-reported if the number of the padding bits is greater than thesize of the first type of BSR format plus its MAC subheader, and is lessthan a size of a length of a second type of BSR format plus its MACsubheader, and the quantity of logical channel groups having datato-be-transmitted is no less than two.
 4. The method according to claim3, wherein determining, according to a size of BSR with a second type ofBSR format plus its MAC subheader corresponding to the logical channelgroups having data to-be-transmitted, and the number of the paddingbits, a BSR format for BSR-to-be-reported comprises: determining toreport a BSR of a third BSR format type, if the size of BSR with asecond type of BSR format plus its MAC subheader corresponding to thelogical channel groups having data to-be-transmitted is greater than thenumber of the padding bits, wherein a quantity of logical channel groupscorresponding to the third type of BSR format is greater than 1, andless than a quantity of the logical channel groups having datato-be-transmitted.
 5. The method according to claim 3, wherein the BSRof a second type comprises identifiers of all the logical channel groupshaving data to-be-transmitted and buffer status informationcorresponding to the logical channel groups; and buffer statusinformation of each logical channel group is sequenced in an order ofidentifiers corresponding to each logical channel group.
 6. The methodaccording to claim 3, wherein the BSR of a second type comprises a firstbitmap, and bits in the first bitmap correspond to the logical channelgroups having data to-be-transmitted; the second type of BSR furthercomprises buffer status information of each of the logical channelgroups having data to-be-transmitted; and buffer status information ofeach logical channel group is sequenced in a corresponding arrangementorder to the first bitmap.
 7. The method according to claim 3, whereindetermining, according to a size of BSR with a second type of BSR formatplus its MAC subheader corresponding to the logical channel groupshaving data to-be-transmitted, and the number of the padding bits, a BSRformat for BSR-to-be-reported comprises: determining, if the the size ofBSR with a second type of BSR format plus its MAC subheadercorresponding to the logical channel groups having datato-be-transmitted is greater than the number of the padding bits, toreport a BSR of a third BSR format type, wherein a quantity of logicalchannel groups corresponding to the third type of BSR format is greaterthan 1 and less than a quantity of the logical channel groups havingdata to-be-transmitted.
 8. The method according to claim 7, whereinbefore determining to report a BSR of a third BSR format type, themethod further comprises: selecting, according to a result of prioritysequencing, one or more logical channel groups satisfying the paddingbits among the logical channel groups having data to-be-transmitted,wherein priority sequencing comprises sequencing the logical channelgroups having data to-be-transmitted in an order of priority.
 9. Themethod according to claim 8, wherein the third type of BSR comprises asecond bitmap, and bits in the second bitmap correspond to the somelogical channel groups; the third type of BSR further comprises bufferstatus information of each of the some logical channels; and bufferstatus information of each logical channel group of the some logicalchannel groups is sequenced in a corresponding arrangement order of thesome logical channel groups to the second bitmap.
 10. The methodaccording to claim 8, wherein the third type of BSR comprises anidentifier of each of the some logical channel groups and buffer statusinformation corresponding to the logical channel groups; and bufferstatus information of each logical channel group of the some logicalchannel groups is sequenced in an order of identifiers of the somelogical channel groups.
 11. The method according to claim 1, whereindetermining, by the terminal, a BSR format for BSR-to-be reportedaccording to a number of padding bits, a size of BSR with a first typeof BSR format plus its media access control (MAC) subheader, and aquantity of logical channel groups having data to-be-transmittedcomprises: determining, if the number of the padding bits is greaterthan the size of BSR with a first type of BSR format plus its MACsubheader, and is less than a size of a length of a second type of BSRformat plus its MAC subheader, and the quantity of logical channelgroups having data to-be-transmitted is one, to report the first type ofBSR format.
 12. The method according to claim 1, wherein determining, bythe terminal, a BSR format for BSR-to-be reported according to a numberof padding bits, a size of BSR with a first type of BSR format plus itsmedia access control (MAC) subheader, and a quantity of logical channelgroups having data to-be-transmitted comprises: determining, if thenumber of the padding bits is greater than a size of a length of asecond type of BSR format plus its MAC subheader, to report the secondtype of BSR format, wherein a quantity of logical channel groupscorresponding to the second type of BSR format is equal to a quantity ofthe logical channel groups having data to-be-transmitted.
 13. The methodaccording to claim 1, wherein determining, by the terminal, a BSR formatfor BSR-to-be reported according to a number of padding bits, a size ofBSR with a first type of BSR format plus its media access control (MAC)subheader, and a quantity of logical channel groups having datato-be-transmitted comprises: determining, if the number of the paddingbits is equal to the size of BSR with a first type of BSR format plusits MAC subheader, and the quantity of logical channel groups havingdata to-be-transmitted is at least two, to report a fourth type of BSRformat, wherein the fourth type of BSR format corresponds to one of theat least two logical channel groups.
 14. The method according to claim1, wherein determining, by the terminal, a BSR format for BSR-to-bereported according to a number of padding bits, a size of BSR with afirst type of BSR format plus its media access control (MAC) subheader,and a quantity of logical channel groups having data to-be-transmittedcomprises: determining, if the number of the padding bits is equal tothe size of BSR with the first type of BSR format plus its MACsubheader, and the quantity of logical channel groups havingto-be-transmitted data being buffered is one, to report the first typeof BSR format, wherein the first type of BSR format corresponds to thelogical channel group.
 15. A terminal comprising: a memory configured tostore computer-executable instructions; and one or more processors incommunication with the memory and configured to execute thecomputer-executable instructions to at least: trigger reporting of apadding buffer status report; and determine a BSR format for BSR-to-bereported according to a number of padding bits, a size of BSR with afirst type of BSR format plus its media access control (MAC) subheader,and a quantity of logical channel groups having data to-be-transmitted,wherein a quantity of logical channel groups corresponding to the BSRformat is greater than or equal to
 1. 16. The terminal according toclaim 15 wherein the quantity of logical channel groups corresponding tothe BSR format is less than or equal to a quantity of logical channelgroups having to-be-transmitted data being buffered.
 17. The terminalaccording to claim 15, wherein the determining unit is configured todetermine, according to a size of BSR with the second type of BSR formatplus its MAC subheader corresponding to the logical channel groupshaving data to-be-transmitted, and the number of the padding bits, a BSRformat for BSR-to-be-reported if the number of the padding bits isgreater than the size of BSR with the first type of BSR format plus itsMAC subheader, and is less than a size of a length of a second type ofBSR format plus its MAC subheader, and the quantity of logical channelgroups having data to-be-transmitted is no less than two.
 18. Theterminal according to claim 17, wherein the determining unit isconfigured to determine to report a BSR of a third BSR format type, ifthe size of BSR with a second type of BSR format plus its MAC subheadercorresponding to the logical channel groups having datato-be-transmitted is greater than the number of the padding bits,wherein a quantity of logical channel groups corresponding to the thirdtype of BSR format is greater than 1, and less than a quantity of thelogical channel groups having data to-be-transmitted.
 19. The terminalaccording to claim 17, wherein the second type of BSR comprisesidentifiers of all the logical channel groups having datato-be-transmitted and buffer status information corresponding to thelogical channel groups; and buffer status information of each logicalchannel group is sequenced in an order of identifiers corresponding toeach logical channel group.
 20. The terminal according to claim 17,wherein the second type of BSR comprises a first bitmap, and bits in thefirst bitmap correspond to the logical channel groups having datato-be-transmitted; the second type of BSR further comprises bufferstatus information of each of the logical channel groups having datato-be-transmitted; and buffer status information of each logical channelgroup is sequenced in a corresponding arrangement order to the firstbitmap.
 21. The terminal according to claim 17, wherein the determiningunit is configured to determine, if the size of BSR with the second typeof BSR format plus its MAC subheader corresponding to the logicalchannel groups having data to-be-transmitted is greater than the numberof the padding bits, to report a BSR of a third BSR format type, whereina quantity of logical channel groups corresponding to the third type ofBSR format is greater than 1 and less than a quantity of the logicalchannel groups having data to-be-transmitted.
 22. The terminal accordingto claim 21, wherein the terminal further comprises a sequencing unit,configured to sequence, before the determining unit determines to reporta BSR of a third BSR format type, the logical channel groups having datato-be-transmitted in an order of priority; and select, according to aresult of priority sequencing, one or more logical channel groupssatisfying the padding bits from among logical channel groups havingdata to-be-transmitted.
 23. The terminal according to claim 22, whereinthe third type of BSR comprises a second bitmap, and bits in the secondbitmap correspond to the some logical channel groups; the third type ofBSR further comprises buffer status information of each of the somelogical channel groups; and buffer status information of each logicalchannel group of the some logical channel groups is sequenced in acorresponding arrangement order of the some logical channel groups tothe second bitmap.
 24. The terminal according to claim 22, wherein thethird type of BSR comprises an identifier of each of the some logicalchannel groups and buffer status information corresponding to thelogical channel groups; and buffer status information of each logicalchannel group of the some logical channel groups is sequenced in anorder of identifiers of the some logical channel groups.
 25. Theterminal according to claim 15, wherein the determining unit isconfigured to determine, if the number of the padding bits is greaterthan the size of BSR with a first type of BSR format plus its MACsubheader, and is less than a size of a length of a second type of BSRformat plus its MAC subheader, and the quantity of logical channelgroups having data to-be-transmitted is one, to report the first type ofBSR format.
 26. The terminal according to claim 15, wherein thedetermining unit is configured to determine, if the number of thepadding bits is greater than a size of a length of BSR with a secondtype of BSR format plus its MAC subheader, to report the second type ofBSR format, wherein a quantity of logical channel groups correspondingto the second type of BSR format is equal to a quantity of the logicalchannel groups having data to-be-transmitted.
 27. The terminal accordingto claim 15, wherein the determining unit is configured to determine, ifthe number of the padding bits is equal to the size of BSR with a firsttype of BSR format plus its MAC subheader, and the quantity of logicalchannel groups having data to-be-transmitted is at least two, to reporta fourth type of BSR format, wherein the fourth type of BSR formatcorresponds to one of the at least two logical channel groups.
 28. Theterminal according to claim 15, wherein the determining unit isconfigured to determine, if the number of the padding bits is equal tothe size of BSR with a first type of BSR format plus its MAC subheader,and the quantity of logical channel groups having data to-be-transmittedis one, to report the first type of BSR format, wherein the first typeof BSR format corresponds to the logical channel group.